package com.zlx.sharelive.activity;

import android.widget.MediaController;
import android.widget.VideoView;

import com.zlx.module_base.base_ac.BaseAc;
import com.zlx.sharelive.R;

import butterknife.BindView;

/**
 * 女神认证_预览视频
 */
public class GoddessVideoAc extends BaseAc {

    @BindView(R.id.videoView)
    VideoView videoView;

    private String path;

    @Override
    protected int getLayoutId() {
        return R.layout.ac_goddess_video;
    }


    @Override
    public void initViews() {
        super.initViews();

        path = getIntent().getStringExtra("path");

        videoView.setVideoPath(path);

        //创建MediaController对象
        MediaController mediaController = new MediaController(this);

        //VideoView与MediaController建立关联
        videoView.setMediaController(mediaController);

        //让VideoView获取焦点
        videoView.requestFocus();

    }


}
